package com.example.demo.controller;

import com.example.demo.service.NpsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class NpsController {

    @Resource
    private NpsService npsService;

    @RequestMapping("test")
    public Object test(){
        return "hello";
    }

    @RequestMapping("npsQuestion")
    public Object getNpsQuestion(){
        return npsService.getQuestion();
    }
}
